﻿#pragma once
#include<iostream>
using namespace std;
class A
{
public:
	A()
	{

		++_scount;
	}
	A(const A& t)
	{
		++_scount;
	}
	~A()
	{
		--_scount;
	}
	static int GetACount()
	{
		return _scount;
	}
private:
	// 类⾥⾯声明

		static int _scount;
};
// 类外⾯初始化

int A::_scount = 0;